package com.NxIndustries.Sapphire;

import java.io.IOException;
import java.io.InputStream;

import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.widget.TextView;

public class Changelog extends Activity {

    
    public Changelog() {
    	}

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		Context context = this;
		setContentView(R.layout.change_log);
		loadChangeLog();
	}

	private void loadChangeLog() {
		TextView tv = (TextView) findViewById(R.id.logText);
		StringBuilder sb = new StringBuilder("");

		try {
			InputStream isr = getResources().openRawResource(R.raw.changelog);
			int c;
			while ((c = isr.read()) != -1)
				sb.append((char) c);
			isr.close();

		} catch (IOException e) {
		}

		tv.setText(sb.toString());
	}
}